/*
 * bsp_can.h
 *
 *  Created on: 2025 Jan 31
 *      Author: SFLY
 */

#ifndef MOTOR_SOURCE_HW_DRIVERS_BSP_CAN_H_
#define MOTOR_SOURCE_HW_DRIVERS_BSP_CAN_H_
#include "driverlib.h"
#include "device.h"

void Bsp_CAN_PIN_Init(void);
void Bsp_CAN_Init(void);
void Bsp_CAN_SetID(uint32_t motor_id);
void Bsp_CAN_SendMessage(uint32_t motor_id,uint8_t *data);
uint32_t Bsp_CAN_RecvMessage(uint8_t *data);
void Bsp_CANFD_SendMessage(uint32_t motor_id,uint8_t *data);
void Bsp_CANFD_RecvMessage(uint32_t motor_id,uint8_t *data);

#endif /* MOTOR_SOURCE_HW_DRIVERS_BSP_CAN_H_ */
